<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>插件与扩展-- Powered by CentIMS {$core_version}</title>
		<link href="{'ui/smoothness/jquery-ui-1.8.20.c.css'|jquery}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		{if $uploadable}
		<link href="{'plupload/css/jquery.plupload.queue.css'|shared}" rel="stylesheet"/>		
		<link href="../share/attach.css" rel="stylesheet"/>	
		<link href="../files/files.css" rel="stylesheet"/>
		{/if}
		<style type="text/css">
			.opt {
				background-image:url('../images/icons/plugin.png');
			}
		</style>
	</head>
	<body>
		<div class="workspace" style="margin-bottom:5px;">
			<h1 class="title ico opt">插件与扩展</h1>		    
		</div>
		<div class="workspace" style="margin:0 15px;">
				<div class="tabbable tabs-left">
					<ul class="nav nav-tabs" style="min-height:385px;">
						<li>&nbsp;</li>
						<li class="{if 'uninstall' == $group}active{/if}">
							<a class="torg" href="./?Ctlr=PluginMgr&group=uninstall"><i class="icon-inbox"></i>未安装({$uninstalledTotal})</a>
						</li>
						<li class="{if 'installed' == $group}active{/if}">
							<a class="tgre" href="./?Ctlr=PluginMgr&group=installed"><i class="icon-check"></i>已安装({$installedTotal})</a>
						</li>						
					</ul>
	                <div class="tab-content" style="padding-top:10px;">	                	
	                	<div class="tab-pane active">	                		
	                		<div style="margin-bottom:20px;"> 
	                			<span class="mg-r5 tgre">已经启用({$etotal})</span> | <span class="mg-l5 torg">未启用({$dtotal})</span>
	                			{if $uploadable}
	                			<button class="btn pull-right mg-r5" id="btn-upload"><i class="icon-upload"></i>上传</button>
	                			{/if}
	                		</div>
	                		<table id="page-list" class="table table-striped table-bordered table-condensed">
								<thead>
									<tr>
										<th class="col_chk"><input type="checkbox"/></th>										
										<th class="w200">插件</th>
										<th class="wa">描述</th>
									</tr>
								</thead>
								<tbody>
									{foreach from=$items item=item}
									<tr>
										<td class="col_chk"><input type="checkbox" value="{$item.Plugin_ID}"/></td>										
										<td class="has-row-actions">
											<strong>{$item.Plugin_Name}{if ($item.disabled) and $group eq 'installed' }[<span class="torg">未启用</span>]{/if}</strong><br/>
											<div class="row-actions">{'get_plugin_operation'|fire:$item}</div>
										</td>
										<td>
											<p>{$item.Description}</p>
											<p class="txt-info" style="margin:5px 0 0 5px;">
												{$item.Version}版本 | 作者 <a href="{$item.Author_URI}" target="_blank">{$item.Author}</a> |
												<a href="{$item.Plugin_URI}" target="_blank">访问插件主页</a>
											</p>
										</td>																															
									</tr>
									{foreachelse}
									<tr>
										<td colspan="3" class="txt-ac">无插件与扩展</td>
									</tr>
									{/foreach}
								</tbody>
							</table>
	                		
	                		
	                	</div>	                	
	                </div>
	          	</div>
		</div>
		{if $uploadable}
		<div class="hide" title="上传" id="upload-file-dialog">
			<form id="upload-from"  method="post" action="./?Ctlr=UnzipPlugin">
				<input type="hidden" name="cwd" id="upload-cwd"/>
			    <div id="uploader"></div>
			</form>
		</div>
		{/if}
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>		
		<script type="text/javascript" src="{'ui/jquery-ui-1.8.20.c.js'|jquery}"></script>
		<script type="text/javascript" src="{'plupload/plupload.js'|shared}"></script>
		<script type="text/javascript" src="{'plupload/jquery.plupload.queue.js'|shared}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>		
		<script type="text/javascript" src="{'jquery.form.js'|jquery}"></script>
		<script type="text/javascript" src="{'common.js'|shared}"></script>
		<script type="text/javascript" src="plugins.js"></script>
	</body>
</html>
